


<script language="javascript">
    function removeData(kode) {

        if(confirm('Anda yakin akan menghapus data ini?')) {
            location.href = '<?php echo base_url(); ?>index.php/laporan/deposit/' + kode + '/?act=rem';
        }
    }
</script>



<div id="content">
	
    <div class="DivTable">

        <form name="fCari" id="fCari" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" >
            <table class="GridTableFilter">
                <tr>

                    <td>
                        <input class="read-only" type="text" name="srcPeriodStart" id="srcPeriodStart" value="<?php echo $srcPeriodStart; ?>" maxlength="10" size="10" readonly="readonly"  />
                        Sampai
                        <input class="read-only" type="text" name="srcPeriodEnd" id="srcPeriodEnd" value="<?php echo $srcPeriodEnd; ?>" maxlength="10" size="10" readonly="readonly"  />
                    </td>
				</tr>
<?php
				echo $filterPanel;
?>
                <tr>
					<td>
<?php
				echo $filterPanelSingle;
?>
					</td>
                </tr>
            </table>
        </form>
				<?php $this->datagrid->render() ?>
        <table class="GridTable">
            <tr>
                <td colspan="20" class="noborder">
                    <div class="box-control">
<?php
$this->load->view('template/header_menu');
?>
                    </div>
                </td>
            </tr>

	<tr class="GridHeader">
		<td width="20">No.</td>
		<td>Id Menu</td>
		<td>Id Menu Induk</td>
		<td align="center">Menu</td>
		<td align="center">Link</td>
		<td align="center">Urutan</td>
		<td align="center">Active</td>
		<td>Action</td>
	</tr>

<?php

if($rows > 0) {
	$nomor = $_GET['os'];
	foreach($data as $row) {
        $nomor++;
        $styleTR = "GridItem1";
		
        ?>
			<tr class="<?php echo  $styleTR;?>" onclick="javascript:detail('<?php echo $row->idx; ?>')">
			<td ><?php echo  $nomor;?></td>
			<td ><?php echo  $row->id_menu;?></td>
			<td ><?php echo  $row->id_menu_induk;?></td>
			<td ><?php echo  $row->menu;?></td>
			<td ><?php echo  $row->link;?></td>
			<td ><?php echo  $row->urutan;?></td>
			<td ><?php echo  $row->is_active; // echo  Generic::formatDB2Date($row->tglsys.' '.$row->waktusys, true)
			?></td>
           <td ><?php  echo 
						Greybox::createLink(base_url() . "index.php/laporan/tiket_kai_bca_bni_edit/" . $row->idx . "", "", "Ubah Data", "edit", "", 850, 520);
                ?></td>
			</tr>
                    <?php
                }
            } else {
                ?>
                <tr class="GridItem1">
                    <td colspan="6">Tidak ada data</td>
                </tr>

                <?php
            } 
            ?>
        </table>





    </div>
	
<?php
	echo $paging;
?>
    <br class="bersih" />


</div>

<script type="text/javascript">
    function pilihSemua(elem, elem_cbx){
        var obj_elm = elem;
        var obj_elm_checked = obj_elm.checked;
        var obj_elm_cbx = document.getElementsByName(elem_cbx);
        var obj_elm_cbx_len = obj_elm_cbx.length;
        for(i=0; i<obj_elm_cbx_len; i++){
            obj_elm_cbx[i].checked = obj_elm_checked;
        }
    }


    function openURL(url) {
        open(''+ url +'', 'wndStaff', 'width=730,height=500,directories=0,location=0,resizable=1,scrollbars=1,toolbar=0,copyhistory=0,status=0');
        return false;
    }

	function detail(param){
            return GB_showCenter('Detail Tiket KAI BCA BNI', '<?php echo base_url(); ?>index.php/laporan/tiket_kai_bca_bni_edit/'+ param , 720, 850);
	}
		
    jQuery(document).ready(function(){
        jQuery(".tr_slide").hide();

        jQuery('.search').click(
        function(){
            jQuery(".tr_slide").slideToggle();
        }
    );

    });

</script>
